int getSolarMonthDayNum({
  required int year,
  required int month,
}) {
  var MONTH_DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

  if (month == 2) {
    var isLeapYear = false;

    if (year % 100 != 0) {
      isLeapYear = ((year % 4) == 0);
    } else {
      isLeapYear = ((year % 400) == 0);
    }

    if (isLeapYear) {
      MONTH_DAYS[1] = 29;
    } else {
      MONTH_DAYS[1] = 28;
    }
  }

  return MONTH_DAYS[month];
}
